export const TAG_TYPE = {
  USER: 0,
  NEWS: 1,
  DATA: 2,
} as const

export const TAG_TYPE_OPTIONS = [
  { label: '用户', value: TAG_TYPE.USER },
  { label: '资讯', value: TAG_TYPE.NEWS },
  { label: '数据', value: TAG_TYPE.DATA },
] as const

export const getTagTypeLabel = (type: number) => {
  return TAG_TYPE_OPTIONS.find((item) => item.value === type)?.label || '-'
}
